import socket
import random


 

hid = input("input hid：")
msg = input("input msg:")

str='''{
  "cmd": "tx",
  "tx_hid": "xxxxx2",
  "rx_hid": "%s",
  "msg":"%s",
  "index": 1
}'''%(hid,msg)


obj = socket.socket()
obj.connect(("120.78.131.5",8000))
obj.send(str.encode("ascii"))
